﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Util;
using Model;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace BLL
{
  public  class BllAss:Bll<tb_ass>
    {
       public BllAss() { }
		public BllAss(Page _page) : base(_page) { }
        public BllAss(Dal<tb_ass> _dal) : base(_dal) { }
        public BllAss(Page _page, Dal<tb_ass> _dal) : base(_page, _dal) { }

        public override bool Check(tb_ass entity)
		{
			return true;
		}
        public void InitListControl(ListControl ctl) 
        {
            var list = GetList(c => true, true, c => c.sort);
            ctl.Items.Add(new ListItem("----全部----", "0"));
            foreach (var item in list)
            {
                ctl.Items.Add(new ListItem(item.name, item.id.ToString()));
            }
        }
    }
}
